package com.wyh.socket_demo.entiy;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author wxy
 * @version 1.0
 * @date 2022/3/25 9:18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
//回调参数
public class Result {
    //代码
    private Integer code;
    //信息
    private String msg;
    //数据
    private Object data;

    public Result(Object data) {
        this.code = 200;
        this.msg = "成功";
        this.data = data;
    }

}
